import React from 'react';
import { Link } from 'react-router-dom';
import { Menu } from 'antd';
import { HomeOutlined, AppstoreOutlined, FileProtectOutlined, BookOutlined, TagsOutlined } from '@ant-design/icons';

const { SubMenu } = Menu;

export function getNavItem(user) {
    return (
        <SubMenu key="management" icon={<AppstoreOutlined />} title="知识产权管理">
            <Menu.Item key="patent-management" icon={<FileProtectOutlined />}>
                <Link to="/management/patent">专利管理</Link>
            </Menu.Item>
            <Menu.Item key="software-copyright" icon={<BookOutlined />}>
                <Link to="/management/software-copyright">软著管理</Link>
            </Menu.Item>
            <Menu.Item key="trademark-management" icon={<TagsOutlined />}>
                <Link to="/management/trademark">商标管理</Link>
            </Menu.Item>
        </SubMenu>
    )
}